package org.darkforest.vo;

import org.darkforest.model.PMiaosha;

import java.math.BigDecimal;

/**
 * Created by valentina on 15/3/25.
 * 生成订单所需字段对象
 */
public class OrderCreator {

    private Integer userId;         //用户编号


    private MemberBase member;             //session中存储的用户对象

    private String cartId;              //购物车编号格式为：id1,id2...

    private String[] cartIds;           //pc端购物车数组
//    private List<Integer> cartIds;            //解析好的购物车编号数组

    private Integer addressId;          //地址编号

    private String paymentCode;         //支付方式编码

    private Integer invoiceId;          //发票编号

    private BigDecimal totalPrice;      //订单总价

    private String remark;              //备注

    private Integer orderType;          //订单类型 1 普通 2 秒杀

    private PMiaosha miaosha;           //秒杀信息

    private BigDecimal freight;  //运费

    private String activeType; //是否属于秒杀订单
    private Integer activeId; //是否属于秒杀订单

    private String useVoucher;//是否使用优惠券 或者代金券
    private String voucherId;//代金券ID


    private String orderMessage;


    public String getOrderMessage() {
        return orderMessage;
    }

    public void setOrderMessage(String orderMessage) {
        this.orderMessage = orderMessage;
    }

    public String getVoucherId() {
        return voucherId;
    }

    public void setVoucherId(String voucherId) {
        this.voucherId = voucherId;
    }

    public String getUseVoucher() {
        return useVoucher;
    }

    public void setUseVoucher(String useVoucher) {
        this.useVoucher = useVoucher;
    }

    public String getActiveType() {
        return activeType;
    }

    public void setActiveType(String activeType) {
        this.activeType = activeType;
    }

    public Integer getActiveId() {
        return activeId;
    }

    public void setActiveId(Integer activeId) {
        this.activeId = activeId;
    }

    public BigDecimal getFreight() {
        return freight;
    }

    public void setFreight(BigDecimal freight) {
        this.freight = freight;
    }

    public Integer getOrderType() {
        return orderType;
    }

    public void setOrderType(Integer orderType) {
        this.orderType = orderType;
    }

    public PMiaosha getMiaosha() {
        return miaosha;
    }

    public void setMiaosha(PMiaosha miaosha) {
        this.miaosha = miaosha;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public MemberBase getMember() {
        return member;
    }

    public void setMember(MemberBase member) {
        this.member = member;
    }

    public String getCartId() {
        return cartId;
    }

    public void setCartId(String cartId) {
        this.cartId = cartId;
    }

    public Integer getAddressId() {
        return addressId;
    }

    public void setAddressId(Integer addressId) {
        this.addressId = addressId;
    }

    public String getPaymentCode() {
        return paymentCode;
    }

    public void setPaymentCode(String paymentCode) {
        this.paymentCode = paymentCode;
    }

    public Integer getInvoiceId() {
        return invoiceId;
    }

    public void setInvoiceId(Integer invoiceId) {
        this.invoiceId = invoiceId;
    }

    public BigDecimal getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(BigDecimal totalPrice) {
        this.totalPrice = totalPrice;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String[] getCartIds() {
        return cartIds;
    }

    public void setCartIds(String[] cartIds) {
        this.cartIds = cartIds;
    }
}
